import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from 'vue-axios'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/icon/iconfont.css'

Vue.config.productionTip = false
Vue.use(VueAxios, axios)
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });


new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: {
    // 空的实例放到根组件下，所有的⼦组件都能调⽤
    Bus: new Vue()
  }
})